'use strict';

const Controller = require('egg').Controller;

class HomeController extends Controller {
  async index() {
    const { ctx } = this;
    var {goods,total,msg} = await ctx.service.goods.find(ctx.query)
    ctx.body ={
      code:200,
      res:goods,
      msg:msg,
      total
    }
  }
  
}

module.exports = HomeController;
